<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserDeviceInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_device_info', function (Blueprint $table) {
            $table->increments('id');
            $table->string('mobile',20)->comment('用户号码');
            $table->string('shop_id',50)->comment('商户id');
            $table->string('shop_assistant_id',50)->comment('商户地推店员id');
            $table->string('salesman_id',50)->comment('个人地推id');
            $table->string('ground_type',10)->comment('地推类型1：个人地推 2：商家地推');
            $table->string('shop_ground_type',20)->comment('区分普通地推和合伙人地推');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('user_device_info');
    }
}
